

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<script type="text/javascript" src="helpman_topicinit.js"></script>

<title>Subversion Under WINE-Crossover [Enterprise Architect User Guide]</title>

<meta name="keywords" content="Enterprise Architect, Sparx Systems, UML, Subversion,Subversion Using With Enterprise Architect Under WINE Crossover,Subversion Windows-Based Client,Subversion UNIX-Based Client,WINE-Crossover,WINE-Crossover Using Subversion With Enterprise Architect Under,Version Control,Version Control Subversion, Using With Enterprise Architect Under WINE Crossover">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
  A, A:Visited
  {
    color: #00F;
  }

  A:Active, A:Hover
  {
    color: #F00;
  }

  OL
  {
    margin: 5px 0 5px 48px;
  }

  UL
  {
    margin-bottom: 3px;
    margin-top: 0;
  }

  #nsr
  {
    background-color: #D4DFFF;
  }

  #nsr A
  {
    text-decoration: none;
  }

  #mainbody
  {
    padding: 8px;
  }

  .p_BodyText
  {
    padding: 5px 0;
  }
</style>



<style type="text/css" media="screen">
  BODY
  {
    background-color: #FFFFFF;
  }

  #nsr
  {
    padding: 6px 6px 0 6px;
    border-bottom: none;
    vertical-align: top;
    z-index: 2;
    visibility: visible;
    left: 0;
    top: 0;
    position: absolute;
  }

  #mainbody
  {
    left: 0;
    top: 0;
    margin: 0;
    position: absolute;
    padding: 10px;
    overflow: auto;
    height: 100%;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-attachment: fixed;
  }
</style>

<style type="text/css" media="print">
  #nsr
  {
    visibility: none;
  }

  #mainbody
  {
    overflow: visible;
  }
</style>
<script type="text/javascript" language="JavaScript" src="nonscroll.js"></script>

</head>
<body scroll="no">

<div id="page">



        <div id="content">
          <div id="content-inner">
          



  
          <div id="nsr">
            <table border="0" cellspacing="0" cellpadding="4" width="100%">
              <tr valign="top">
                <td align="left">
  


                  <p class="p_Heading1"><span class="f_Heading1">Subversion Under WINE-Crossover</span></p>



  
                </td>
                <td align="right">
                  <a href="introduction.htm" onmouseover="document.images.main.src='button_main_h.gif'" onmouseout="document.images.main.src='button_main.gif'">
                    <img name="main" src="button_main.gif" border=0 alt="Return to Introduction">
                  </a>&nbsp;
    
                  <a href="createalocalworkingcopy.htm" onmouseover="document.images.prev.src='button_prev_h.gif'" onmouseout="document.images.prev.src='button_prev.gif'">
                    <img name=prev src="button_prev.gif" border=0 alt="Previous page" />
                  </a>&nbsp;
    
    
    
                  <a href="configureversioncontrolwith.htm" onmouseover="document.images.next.src='button_next_h.gif'" onmouseout="document.images.next.src='button_next.gif'">
                    <img name=next src="button_next.gif" border=0 alt="Next page" />
                  </a>
    
    
                </td>
              </tr>
            </table>
          </div>
          <div id="mainbody">
  


                <p class="p_BodyText"><span class="f_BodyText">When running Enterprise Architect under WINE/CrossOver, you can use either a Windows-based Subversion client or a Linux-based Subversion client.</span></p>
<p class="p_BodyText"><span class="f_BodyText">If you intend to use the HTTP or HTTPS protocols you must use the Unix-like client, as the Windows client cannot access the libraries necessary to create the required network connections. It is also easier to set up your working copy folder using the native Unix-like Subversion client and then continue using that same client from within Enterprise Architect.</span></p>
<p class="p_BodyText"><span class="f_BodyText">However, to make use of the Unix-like client under CrossOver, you must also download and install a bridging utility called </span><span class="f_BodyText" style="font-style: italic;">SVN_gate</span><span class="f_BodyText">, which is available from the CodeWeavers' (CrossOver) web site:</span></p>
<p class="p_BodyText"><span class="f_BodyText"><a href="http://www.codeweavers.com/support/wiki/EAsvn" target="_blank" class="weblink">http://www.codeweavers.com/support/wiki/EAsvn</a></span></p>
<p class="p_BodyText"><span class="f_BodyText">When using the Windows Subversion client, you simply install the Win32 Subversion client under CrossOver. Once you have set up your working copy directory, you are ready to use Subversion with Enterprise Architect. However, setting up your working copy is more difficult when using Win32 Subversion under CrossOver. Because you cannot see any output from Subversion commands run under CrossOver, the best way to run the commands is to create a Windows batch file containing the command to run, and to run that batch file as a Windows command under CrossOver. (See the <a href="using_subversion_with_enterpri.htm#Batch">example batch file</a> below.)</span></p>
<p class="p_BodyText"><span class="f_BodyText">If you are running directly under WINE, launch the Windows batch file from a Unix shell script such as follows;</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">/home/user/cxoffice/bin/wine --bottle &quot;ea&quot; --untrusted</span></p>
<p class="p_Code"><span class="f_Code">--workdir &quot;/home/user/.cxoffice/ea&quot;&quot;/drive_c&quot;</span></p>
<p class="p_Code"><span class="f_Code">-- &quot;/home/user/.cxoffice/ea/drive_c/batfile.bat&quot;</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_BodyText"><span class="f_BodyText">Enterprise Architect uses the Subversion command line client to communicate with your Subversion server. In order for Enterprise Architect to work successfully with Subversion, your Subversion working copy environment must be set up such that you can issue commands to Subversion from the command line, without ever being prompted for user input such as username or password.</span></p>
<p class="p_BodyText"><span class="f_BodyText">By default, whenever the Subversion command-line client successfully responds to a server's authentication challenge, it saves the credentials in the user's private runtime configuration area, which is:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Code">~/.subversion/auth/</span><span class="f_Bulletlist1"> on Unix-like systems or</span></li>
<li><span class="f_Code">%APPDATA%/Subversion/auth/</span><span class="f_Bulletlist1"> on Windows (which translates to .</span><span class="f_Code">../drive_c/windows/profiles/crossover/Application Data/Subversion/auth/</span><span class="f_Bulletlist1"> under CrossOver).</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">For this reason, Sparx Systems recommend that when you checkout a working copy from the Subversion repository, you specify your username and password on the command line, such that your credentials are cached from the outset. Use a Subversion command such as:</span></p>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Using a Unix-like client (run the command from the command line):</span><br>
<span class="f_Code">&nbsp;</span><br>
<span class="f_Code">svn checkout --username &quot;UserName&quot; --password &quot;myPassword&quot; &quot;svn://myServerName:3690/myProject&quot; &quot;/.../drive_c/workingCopyDirectory&quot;</span><br>
<span class="f_Code">&nbsp;</span></li>
</ul>
<ul style="text-indent: 0px; margin-left: 30px; list-style-position: outside;">
<li><span class="f_Bulletlist1">Using a Win32 client (run the command within a batch file run under CrossOver):</span><br>
<span class="f_Bulletlist1">&nbsp;</span><br>
<span class="f_Code">&quot;C:\Program Files\Subversion\bin\svn.exe&quot; checkout --username &quot;UserName&quot; --password &quot;myPassword&quot; &quot;svn://myServerName:3690/myProject&quot; &quot;C:\SVN-test\workcopy&quot; &gt;&quot;C:\SVN-test\stdout.txt&quot; &amp;2&gt;&quot;C:\SVN-test\stderr.txt&quot;</span><br>
<span class="f_Code">&nbsp;</span></li>
</ul>
<p class="p_BodyText"><span class="f_BodyText">It is a good idea to checkout your Subversion working copy into a folder within the WINE bottle where Enterprise Architect is to run. In this way, the pathnames used for your version controlled package files are much shorter.</span></p>
<p class="p_BodyText"><span class="f_BodyText">If you intend to use the Win32 Subversion client with Enterprise Architect, you should create the local working copy that Enterprise Architect is to use, by performing a Subversion checkout command using the Win32 client under WINE/CrossOver. Similarly, if you plan to use the Unix-like Subversion client with Enterprise Architect, you should perform the initial checkout using that client. In this way, your user credentials are cached in the correct location for the client that Enterprise Architect is using.</span></p>
<p class="p_BodyText"><span class="f_BodyText">It is important to verify that your command line client for Subversion is working correctly before attempting to connect from Enterprise Architect. For guidance on verifying your set up, see the </span><span class="f_BodyText" style="font-style: italic;"><a href="createalocalworkingcopy.htm">Create a Local Working Copy</a></span><span class="f_BodyText"> topic.</span></p>
<p class="p_BodyText"><a name="batch"></a><span class="f_BodyText">The following is an example of a Windows batch file that can be used under CrossOver to run Subversion commands. Simply uncomment the command to execute. Each command should be a single line - the '</span><span class="f_BodyText" style="font-weight: bold;">\</span><span class="f_BodyText">' is intended as a continuation character.</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">  rem&nbsp; &quot;C:\Program Files\Subversion\bin\svn.exe&quot; checkout --username &quot;UserName&quot; --password &quot;myPassword&quot;&nbsp; \</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;svn://myServerName:3690/myProject&quot; &quot;C:\SVN-test\workcopy&quot;</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&quot;C:\SVN-test\stdout.txt&quot; &amp;2&gt;&quot;C:\SVN-test\stderr.txt&quot;</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">  rem&nbsp; &quot;C:\Program Files\Subversion\bin\svn.exe&quot; add &quot;C:\SVN-test\workcopy\myTestFile.xml&quot;&nbsp;&nbsp; \</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&quot;C:\SVN-test\stdout.txt&quot; &amp;2&gt;&quot;C:\SVN-test\stderr.txt&quot;</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">  rem&nbsp; &quot;C:\Program Files\Subversion\bin\svn.exe&quot; commit -m&quot;a message&quot;&nbsp; &quot;C:\SVN-test\workcopy\myTestFile.xml&quot;&nbsp;&nbsp; \</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&quot;C:\SVN-test\stdout.txt&quot; &amp;2&gt;&quot;C:\SVN-test\stderr.txt&quot;</span></p>
<p class="p_Code"><span class="f_Code">&nbsp;</span></p>
<p class="p_Code"><span class="f_Code">  rem&nbsp; &quot;C:\Program Files\Subversion\bin\svn.exe&quot; lock&nbsp;&nbsp;&nbsp;&nbsp; &quot;C:\SVN-test\workcopy\myTestFile.xml&quot;&nbsp;&nbsp; \</span></p>
<p class="p_Code"><span class="f_Code"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&quot;C:\SVN-test\stdout.txt&quot;&nbsp; &amp;2&gt;&quot;C:\SVN-test\stderr.txt&quot;</span></p>




            </div>
          </div>
        </div>



</div>


</body>
</html>
